<?php

class Front_Form_Login extends Zend_Form
{
    public function init() {
        parent::init();
        
        $username = new Zend_Form_Element_Text('username');  
        $username->setLabel('Username:')  
                ->setAttrib('placeholder', 'Username')
                ->setRequired(true);  
      
        $password = new Zend_Form_Element_Password('password');  
        $password->setLabel('Password:') 
                ->setAttrib('placeholder', 'Password')
                ->setRequired(true);  
      
        $submit = new Zend_Form_Element_Submit('login');  
        $submit->setLabel('Login');  

        $this->setMethod('post')  
                ->addElement($username)  
                ->addElement($password)  
                ->addElement($submit);  
    }
}
